import java.util.Scanner;

public class testTuesday {

                            //9*9乘法表
    public static void mul(int n) {
        for(int i = 1;i<=9;i++){
            for(int j = 1;j<=i;j++){
                    System.out.print(j + "*" + i + "=" + (i * j)+"\t");
            }
            System.out.println(" ");
        }
    }
    public static void main4(String[] args) {
        mul(9);
    }

                          //按位打印
    public static void fun(int n) {
        while(n != 0){
            if(n<10 && n>0){
                System.out.println(n);
                break;
            }else{
                System.out.print(n%10+" ");
                n/=10;
            }
        }
    }
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        fun(n);
    }

                                     //模拟登录
    public static void login(String password) {
        int count = 3;
        while (true){
            if(password.equals("123456")){         //字符串比较
                System.out.println("登录成功！");
                break;
            }else{
                count--;
                System.out.println("请重新输入密码:"+"\n"+"登录剩余次数"+count);
            }
            break;
        }

    }
    public static void main2(String[] args) {
        System.out.println("请输入密码：");
        Scanner scanner = new Scanner(System.in);
        String password = scanner.nextLine();
        login(password);
    }
                                //输出奇偶位的1（按二进制）
    public static void printOne(int n) {
        for(int i = 30;i>=0;i-=2){
            System.out.print(((n >> i) & 1)+" ");
        }
        System.out.println();
        for(int i = 31;i>=1;i-=2){
            System.out.print(((n >> i) & 1)+" ");
        }
    }

    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        printOne(n);
    }
}
